package com.example.ai.inventory.exception;

/**
 * 进销存系统业务异常
 */
public class InventoryException extends RuntimeException {
    
    private String errorCode;
    
    public InventoryException(String message) {
        super(message);
    }
    
    public InventoryException(String message, String errorCode) {
        super(message);
        this.errorCode = errorCode;
    }
    
    public String getErrorCode() {
        return errorCode;
    }
    
    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }
}